import request from "@/router/axios";
// 车队车辆

export const getPage = (page, params) => {
  return request({
    url: "/admin/teamcar/page",
    method: "get",
    params: {
      ...page,
      ...params,
    },
  });
};

export const save = (form) => {
  return request({
    url: "/admin/teamcar/save",
    method: "post",
    data: {
      ...form,
    },
  });
};

export const remove = (id) => {
  return request({
    url: "/admin/teamcar/remove",
    method: "post",
    params: {
      ids: id,
    },
  });
};

export const unbindCard = (id, cardId) => {
  return request({
    url: "/api/uic-system/fillteamcar/unbindCard",
    method: "post",
    data: {
      id: id,
      cardId: cardId,
    },
  });
};
